package com.lu.controller;

import com.lu.service.BasicService;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;

/**
 * @author xiaolu
 * @version 1.0
 * @date 2021-02-03 23:32
 */
@Configuration
@ComponentScan("com.lu")
public class BasicController {

    public static void main(String[] args) {

        AnnotationConfigApplicationContext context = new AnnotationConfigApplicationContext(BasicController.class);
        BasicService basicService = context.getBean(BasicService.class);
        basicService.testSaveUser();
    }
}
